package com.wxapp.sale.service.event.listener;

import com.wxapp.common.constant.base.IBaseListen;
import com.wxapp.common.core.filter.except.ThrowMyException;
import com.wxapp.sale.api.pojo.vo.listener.ListenerVo;
import com.wxapp.sale.service.event.OrderEvent;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * Description 统计
 * @author lgl
 * DateTime  2024/2/3 10:53
 * Modified By
 */
@Component
@RequiredArgsConstructor
public class OrderListener extends IBaseListen<OrderEvent, ListenerVo> {

    @Override
    protected Object toDealListen(OrderEvent event) throws ThrowMyException {
        var data = event.getData();
//        rabbitMQUtil.send(new RabbitSendVo(RabbitMQConstant.ORDER_EXPIRE_DEAL + data.getData().getCode(), data));
//        rabbitMQUtil.send(new RabbitSendVo(RabbitMQConstant.STATISTICAL_LOG + data.getListenerType().getValue(), data));
        return null;
    }
}
